﻿@{
    ViewData["Title"] = "Login";
    Layout = null;
}

@model OnlineStore.Web.Areas.Admin.Models.LoginViewModel

<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Login</title>
    <link href="~/css/style.css" rel="stylesheet"/>
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,300' rel='stylesheet' type='text/css'>
    <link href="~/lib/bootstrap/dist/css/bootstrap.css" rel="stylesheet"/>
</head>
<body>

<div class="container Login">
    <div class="row">
        <div class="col-md-4">


            <!-- Start Sign In Form -->
            <form asp-area="Admin" asp-controller="Admin" asp-action="Login" method="post">
                <h2>管理员登录</h2>
                <div class="form-group">
                    <label asp-for="Email" class="sr-only"></label>
                    <input class="form-control" placeholder="电子邮箱" autocomplete="off" asp-for="Email">
                    <span asp-validation-for="Email"></span>
                    <div asp-validation-summary="ModelOnly"></div>
                </div>
                <div class="form-group">
                    <label asp-for="Password" class="sr-only"></label>
                    <input class="form-control" placeholder="密码" autocomplete="off" asp-for="@Model.Password">
                    <span asp-validation-for="Password"></span>
                </div>
                <div class="form-group">
                    <label for="remember"><input type="checkbox" id="remember"> Remember Me</label>
                </div>
                <div class="form-group">
                    <p>仍未注册？注册一个账号吧 <a asp-area="Admin" asp-controller="Admin" asp-action="Register">注册</a></p>
                </div>
                <div class="form-group">
                    <input type="submit" value="Sign In" class="btn btn-primary">
                </div>
            </form>

        </div>
    </div>

</div>

</body>
</html>